// 镜湖区---纪实 board
let base = config.ip
let projectName = '/public-uias-api'
import { get, post } from './http.js'

// 查询所属页面下的菜单树开始
export const getListRecursiveMenuByBelong = p => get(`${base}${projectName}/uias-menu/listRecursiveMenuByBelong`, p)

// 新权限登录
export const internalLogin = p => post(`${base}${projectName}/uias_login/internalLogin`, p)

// 用户更新密码
export const updateLoginPassword = p => post(`${base}${projectName}/uias_login/updatePassword`, p)

// 判断用户是否已经更新密码
export const isRemindModifyPassword = p => post(`${base}${projectName}/uias-user/isRemindModifyPassword`, p)

// 获取所属页面下面的所有按钮信息
export const listButtonInfo = p => get(`${base}${projectName}/uias-menu/listButtonInfo`, p)

// 获取当前登陆人可操作的菜单和按钮
export const listPageInfoByUserId = p => get(`${base}${projectName}/uias-menu/listPageInfoByUserId`, p)

// 发送短信验证码
export const sendSignCodeByTelecom = p => post(`${base}${projectName}/uias_login/sendSignCodeByTelecom`, p)

// 发送短信验证码
export const sendSignCode = p => post(`${base}${projectName}/uias_login/sendSignCodeByAliyun`, p)

// 延期管理记录列表
export const saveTenantDelayRecord = p => post(`${base}${projectName}/uias-tenant-delay/saveTenantDelayRecord`, p)
